<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%user_to_department}}".
 *
 * @property integer $cwx_department
 * @property integer $user_id
 */
class UserToDepartment extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%user_to_department}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['cwx_department', 'user_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'cwx_department' => 'Cwx Department',
            'user_id' => 'user表的ID，而不是微信userid',
        ];
    }
}
